﻿<UserControl x:Class="UmbracoMedia.UmbracoMediaImageControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:control="clr-namespace:UmbracoMedia.Foundation"
    Width="160" Height="120">
    <UserControl.Resources>
        <control:ImageSourceConverter x:Key="converter"/>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White" Margin="2,2,2,2">
        <Border BorderThickness="1,1,1,1" BorderBrush="#FF000000">
            <!-- <Image Width="160" Height="120" 
       Source="{Binding Path=Uri, Converter={StaticResource ImageSourceConverter}}"
       Margin="0,0,0,5" MouseLeave="Image_MouseLeave" MouseEnter="Image_MouseEnter"
                   ToolTipService.ToolTip="{Binding Path=ToolTip}" MouseLeftButtonUp="Image_MouseLeftButtonUp" Name="Thumb"/>
            -->
            <Image Width="160" Height="120" 
       Source="{Binding Path=SourceImage}"
       Margin="0,0,0,5" MouseLeave="Image_MouseLeave" MouseEnter="Image_MouseEnter"
                   ToolTipService.ToolTip="{Binding Path=ToolTip}" MouseLeftButtonUp="Image_MouseLeftButtonUp" Name="Thumb"/>
        </Border>
    </Grid>
</UserControl>
